package cn.iocoder.yudao.module.trade.api.brokerage;

import cn.iocoder.yudao.module.trade.api.brokerage.dto.BrokerageRecordDto;
import cn.iocoder.yudao.module.trade.dal.mysql.brokerage.BrokerageRecordMapper;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;
import java.util.List;


@Service
@Validated
public class BrokerageRecordApiImpl implements BrokerageRecordApi{


    @Resource
    private BrokerageRecordMapper brokerageRecordMapper;

    @Override
    public List<BrokerageRecordDto> getUserBrokerageRecordListByRankingId(Long rankingId) {
        return brokerageRecordMapper.getUserBrokerageRecordListByRankingId(rankingId);
    }

    @Override
    public BrokerageRecordDto getUserBrokerageRecordListByRankingIdAndUserId(Long rankingId,Long userId){
        return brokerageRecordMapper.getUserBrokerageRecordListByRankingIdAndUserId(rankingId,userId);
    }


}
